package top.aprillie.mamabike.bike.service;

import top.aprillie.mamabike.bike.entity.BikeLocation;
import top.aprillie.mamabike.common.exception.MaMaBikeException;
import top.aprillie.mamabike.user.entity.UserElement;

/**
 * @Author: illure
 * @Description:
 * @Date: Created in 23:01 2018/2/16
 * @Modified By:
 */
public interface BikeService {

    void generateBike() throws MaMaBikeException;

    void unLockBike(UserElement currentUser, Long number) throws MaMaBikeException;

    void lockBike(BikeLocation bikeLocation) throws MaMaBikeException;

    void reportLocation(BikeLocation bikeLocation) throws MaMaBikeException;
}
